﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ProDivingAdmin2salmon14.View
{
    public class DataGridViewCheckColumn : DataGridViewCheckBoxColumn
    {
        public delegate void DelegateIsChecked();
        public event DelegateIsChecked EventIsChecked = null;
        public bool isChecked
        {
            get
            {
                return this.isChecked;
            }
            set 
            {
                if (this.TrueValue.ToString() == "true")
                {
                    this.isChecked = true;
                }
                else
                {
                    this.isChecked = false;
                }
            }
        }

        public DataGridViewCheckColumn() 
        {
            this.EventIsChecked += IsChecked;
        }

        private void IsChecked()
        {
           

        }
    
    }
}
